<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>菜鸟教程(runoob.com)</title>
    <script src="../js/vue.min.js"></script>
</head>
<body>
<p><b>修改输入框的值，查看效果</b>：</p>
<div id="app">
    <p>{{ message }}</p>
    <!-- 字符串连接 -->
    <p>{{ message + '官网地址：www.runoob.com' }}</p>
    <!-- 字符串反转 -->
    <p>{{ message.split('').reverse().join('') }}</p>
    <p>我是新的值：{{newMessage}}</p>
    <input v-model="message" >
    ddd
</div>
<script>
    new Vue({
        el: '#app',
        data: {
            message: '菜鸟教程!',
            newMessage:""
        },
        mounted:function(){
            this.newMessage=this.message
        }
    })
</script>
</body>
</html>
